* {
  margin: 0;
  padding: 0;
}
.flex {
  display: flex;
}
.flex-1 {
  flex: 1;
}
.alignC {
  align-items: center;
}
.colorfff {
  color: #fff;
}
.colorGreen {
  color: #3dbb2b;
}
.colorFF6152 {
  color: #ff6152;
}

.color0 {
  color: #f3605a; // 立即拼团
}
.color1 {
  color: #ff6b00; // 已参团
}
.color999 {
  color: #999; // 已售罄 / 无购买资质
}
.color666 {
  color: #666; // 已售罄 / 无购买资质
}
.color3 {
  color: #2bbba1; // 即将开始
}

.weightBold {
  font-weight: bold;
}
.color .mr02 {
  margin-right: 0.2rem;
}
.collage2022 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;

  // 头部图
  background-color: #df3f29;
  header {
    position: relative;
    img {
      width: 100%;
      vertical-align: text-bottom;
    }
  }

  // 流程图
  .flow {
    .flowImg {
      width: 96%;
      position: absolute;
      bottom: 0;
      left: 2%;
    }
    .flowText {
      position: absolute;
      top: 48.5%;
      right: 2%;
      color: #d33e29;
      background-color: #ffe3d3;
      padding: 0.1rem 0.3rem;
      border-radius: 0 0.2rem;
    }
  }

  .changeGoodsBg {
    position: sticky;
    z-index: 1;
    position: -webkit-sticky; // 兼容 -webkit 内核的浏览器
    top: 0;

    .changeGoodsBg1 {
      height: 1.4rem;
      background-color: #df3f29;
    }
    .changeGoods {
      display: flex;
      font-weight: bold;
      div {
        font-size: 0.4rem;
        color: #fff;
        width: 33.33%;
        text-align: center;
        line-height: 1.2rem;
        background-color: #ee523c;
      }
      .pitchOn {
        position: relative;
        color: #ee523c;
        background-color: #fff;
      }
      .pitchOn::after {
        content: "";
        border-right: 0.3rem solid transparent;
        border-left: 0.3rem solid transparent;
        border-top: 0.3rem solid #fff;
        position: absolute;
        bottom: -0.2rem;
        left: 50%;
        transform: translateX(-50%);
      }
    }
  }
  main {
    //选择状态

    // 有商品
    .goods {
      .goodsList {
        width: 98%;
        background-color: #fff;
        margin: 0.5rem auto 0;
        border-radius: 0.2rem;
        overflow: hidden;

        .tuxeTop {
          margin-top: 0.4rem;
        }
        .tuxedoNum {
          margin-bottom: 0.1rem;
          span {
            padding: 0.1rem 0.3rem;
            background-color: #ffd800;
            border-bottom-right-radius: 0.1rem;
          }
        }
        h2 {
          margin-bottom: 0.2rem;
        }
        .text {
          color: #666666;
          margin-bottom: 0.1rem;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 1; //超出1行
          -webkit-box-orient: vertical;
        }
        .text0 {
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 1; //超出1行
          -webkit-box-orient: vertical;
        }
        .text1 {
          display: flex;
          align-items: center;
          margin-bottom: 0.1rem;
          .text1Progress {
            width: 56%;
            border-radius: 0.2rem;
            margin-right: 0.1rem;
          }
          .text1All {
            color: #f34444;
          }
        }

        .textRemark {
          width: 97%;
          color: #999999;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 2; //超出1行
          -webkit-box-orient: vertical;
        }

        .goodsTime {
          font-size: 0.4rem;
          margin-top: 0.3rem;
          text-align: center;
          line-height: 1rem;
          background-color: #ffe8ae;
          display: flex;
          align-items: center;
          justify-content: center;

          .goodsTimeBoxTime {
            font-size: 0.33rem;
            display: flex;
            align-items: center;
          }
          .goodsTimeBox {
            min-width: 0.65rem;
            padding: 0.15rem 0;
            margin: 0 0.05rem;
            background-color: #ff4735;
            border-radius: 0.05rem;
          }
          .lineH {
            text-align: center;
            line-height: 1rem;
            background-color: #ffe8ae;
          }
          .font1 {
            font-size: 0.4rem;
          }
        }
      }
      img {
        width: 3.7rem;
        max-height: 3.7rem;
        margin-right: 0.2rem;
        padding-left: 0.3rem;
      }

      .goodsPrice {
        padding-left: 0.3rem;
        margin-top: 0.1rem;
        align-items: center;
        .goodsPriceNum {
          width: 3.7rem;
          margin-right: 0.2rem;
          del {
            color: #999;
          }
          p {
            color: #f34444;
            span:first-child {
              font-size: 0.4rem;
            }
            span {
              font-size: 0.51rem;
            }
          }
        }
      }

      .goodsBtn {
        flex: 1;
        margin-right: 2%;
        padding-left: 0.2rem;
        line-height: 1rem;
        display: flex;
        justify-content: space-between;
        border-radius: 0.2rem 0.5rem 0.5rem 0.2rem;

        .goodsBtnNum {
          font-size: 16px;
          font-size: 0.4rem;
        }
        .goodsBtnOK {
          width: 2.2rem;
          text-align: center;
          border-radius: 0.5rem;
          font-size: 0.4rem;
          user-select: none;
        }
      }

      .buyBg0 {
        background-color: #fbebee; // 立刻购买
      }
      .buyBg1 {
        background-color: #ffeee1; // 已参团
      }
      .buyBg2 {
        background-color: #f4f4f4; // 已售罄 / 无购买资质
      }
      .buyBg3 {
        background-color: #e0fdf8; // 即将开始
      }

      .buyBtnBg0 {
        background: linear-gradient(
          90deg,
          #ec413b 0%,
          #f4665f 100%
        ); // 立刻购买
      }
      .buyBtnBg1 {
        background: linear-gradient(90deg, #f54e29 0%, #ff8733 100%); // 已参团
      }
      .buyBtnBg2 {
        background-color: #d7d7d7; // 已售罄 / 无购买资质
      }
      .buyBtnBg3 {
        background: linear-gradient(90deg, #2cbca0 0%, #6acb64 100%); //即将开始
      }
    }

    // 没有商品
    .nullGoods {
      text-align: center;
      padding-top: 0.5rem;
      padding-bottom: 8.5rem;
      img{
        width: 7rem;
      }
    }
  }

  .wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    img:nth-child(2) {
      width: 9rem;
    }
    .wrapperIn {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      img:first-child {
        width: 0.8rem;
      }
      img:nth-child(1) {
        position: absolute;
        top: 4%;
        right: 4%;
      }
    }
  }

  //回到顶部
  .upgrade {
    position: fixed;
    bottom: 230px;
    right: 47px;
    height: 88px;
    width: 88px;
    z-index: 999;

    img {
      width: 100%;
      height: 100%;
    }
  }
  //组件的
  /deep/.van-list__loading {
    padding-top: 5rem;
    .van-loading,
    .van-loading__text {
      color: #fff;
      font-size: 0.35rem;
    }
  }
  /deep/.van-list__finished-text {
    color: #fff;
    padding-top: 5rem;
    font-size: 0.35rem;
  }

  /deep/.van-progress__pivot {
    padding-top: 3px !important;
    background: transparent !important;
    left: 12% !important;
    color: #fff;
    background: none;
    font-size: 20px;
    line-height: 26px;
  }
}
